package com.asset.dispoal.business.bsBorrower.domain.db.mapper;

import com.asset.dispoal.business.bsBorrower.domain.db.entity.Borrower;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author qr
 * @date 2022/4/7$
 */
@Mapper
public interface BorrowerMapper {

    /**
     * 批量添加
     *
     * @param borrowerList
     */
    void batchSaveBorrower(@Param("borrowerList") List<Borrower> borrowerList);

    void batchUptBorrower(@Param("borrowerList") List<Borrower> borrowerList);

    /**
     * 根据合同id 修改借款人信息
     *
     * @param borrower
     */
    void updateByAgreementId(@Param("item") Borrower borrower);

}
